package blow.sky.quoted.dao;

import blow.sky.quoted.entity.QuoteRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Component
@Transactional
public interface RequestDao extends JpaRepository<QuoteRequest, Long>
{
    List<QuoteRequest> findAllByFromUserAndSuccession(String user,boolean succession);

    List<QuoteRequest> findAllBySuccession(boolean succession);
}
